<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h1>{{ msg }}</h1>
    <h1>v-text</h1>
    <h1 v-text='msg'>v-text</h1>
    <h1>v-module</h1>
    <input type="text" v-module="msg">
    <input type="text" v-module="n">
    <button v-on:click="clickFn">v-on:click</button>
    <div v-html="html"></div>
  </div>
  <script src="./dep.js"></script>
  <script src="./watcher.js"></script>
  <script src="./compiler.js"></script>
  <script src="./observer.js"></script>
  <script src="./index.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello',
        n: 222,
        html: '<h2>v-html</h2>'
      },
      methods: {
        clickFn () {
          console.log('点了')
        }
      }
    })
  </script>
</body>
</html>